package com.oocl.o2o.client.service;

import java.util.List;

import com.oocl.o2o.client.entity.OrderInfo;

/**
 * @description: OrderInfoService
 * @author  XIEMI2
 * @date Aug 12, 2017 10:13:57 AM
 * @version 1.0
 */
public interface OrderInfoService {

	/**
	 * find all the order info
	 * @return List<OrderInfo>
	 */
	public List<OrderInfo> findAll();
	
	/**
	 * insert an OrderInfo to database
	 * @param food
	 * @return OrderInfo
	 */
	public OrderInfo add(OrderInfo orderInfo);

	/**
	 * 
	 * @param id
	 * @return OrderInfo
	 */
	public OrderInfo delete(String id);
	
	/**
	 * 
	 * @param food
	 * @return OrderInfo
	 */
	public OrderInfo update(OrderInfo orderInfo);
	
	/**
	 * 
	 * @param orderInfo
	 * @return OrderInfo
	 */
	public OrderInfo findById(String orderInfoId);
	
	/**
	 * 
	 * @param customerName
	 * @return List<OrderInfo>
	 */
	public List<OrderInfo> findByCustomerName(String customerName);
	
	/**
	 * 
	 * @param customerName
	 * @return List<OrderInfo>
	 */
	public List<OrderInfo> findByCustomerId(String customerId);
	
	/**
	 * 客人确认订单信息
	 * @param orderInfoId
	 * @return boolean
	 */
	public boolean updateOrderInfoStatus(String orderInfoId);
}


